package com.itaming.lycheeframework.api.exception;

import com.itaming.lycheeframework.api.result.CommonErrorCode;
import com.itaming.lycheeframework.api.result.IErrorCode;

import java.io.Serial;

/**
 * 未找到资源异常
 *
 * @author A.Ming
 */
public class NotFoundException extends AbstractApiException {

    @Serial
    private static final long serialVersionUID = 1L;

    private static final IErrorCode DEFAULT_ERROR_CODE = CommonErrorCode.NOT_FOUND;

    public NotFoundException() {
        super(DEFAULT_ERROR_CODE);
    }

    public NotFoundException(IErrorCode errorCode) {
        super(errorCode);
    }

    public NotFoundException(String message) {
        super(DEFAULT_ERROR_CODE, message);
    }

}
